package com.ruoyi.cderp.mapper;

import java.util.List;
import com.ruoyi.cderp.domain.TblReceiveSheet;
import com.ruoyi.cderp.domain.TblReceiveSheetDetail;

/**
 * 采购收货单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
public interface TblReceiveSheetMapper 
{
    /**
     * 查询采购收货单
     * 
     * @param id 采购收货单主键
     * @return 采购收货单
     */
    public TblReceiveSheet selectTblReceiveSheetById(String id);

    /**
     * 查询采购收货单列表
     * 
     * @param tblReceiveSheet 采购收货单
     * @return 采购收货单集合
     */
    public List<TblReceiveSheet> selectTblReceiveSheetList(TblReceiveSheet tblReceiveSheet);

    /**
     * 新增采购收货单
     * 
     * @param tblReceiveSheet 采购收货单
     * @return 结果
     */
    public int insertTblReceiveSheet(TblReceiveSheet tblReceiveSheet);

    /**
     * 修改采购收货单
     * 
     * @param tblReceiveSheet 采购收货单
     * @return 结果
     */
    public int updateTblReceiveSheet(TblReceiveSheet tblReceiveSheet);

    /**
     * 删除采购收货单
     * 
     * @param id 采购收货单主键
     * @return 结果
     */
    public int deleteTblReceiveSheetById(String id);

    /**
     * 批量删除采购收货单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTblReceiveSheetByIds(String[] ids);

    /**
     * 批量删除采购收货单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTblReceiveSheetDetailBySheetIds(String[] ids);
    
    /**
     * 批量新增采购收货单明细
     * 
     * @param tblReceiveSheetDetailList 采购收货单明细列表
     * @return 结果
     */
    public int batchTblReceiveSheetDetail(List<TblReceiveSheetDetail> tblReceiveSheetDetailList);
    

    /**
     * 通过采购收货单主键删除采购收货单明细信息
     * 
     * @param id 采购收货单ID
     * @return 结果
     */
    public int deleteTblReceiveSheetDetailBySheetId(String id);
}
